package com.hy.erp.inventory.pojo;

import java.io.Serializable ;

import javax.persistence.Column ;
import javax.persistence.Entity ;
import javax.persistence.Id ;
import javax.persistence.Table ;

import org.hibernate.annotations.Index ;
import org.springframework.stereotype.Component;
//import org.jboss.seam.ScopeType ;
//import org.jboss.seam.annotations.Name ;
//import org.jboss.seam.annotations.Scope ;

import com.hy.enterprise.framework.persistence.entity.AbstractPersistentEntity;
import com.hy.erp.inventory.dao.interfaces.IPositionTypeDao;
import com.hy.erp.inventory.pojo.interfaces.IMembereRelation;
import com.hy.erp.inventory.pojo.interfaces.IOrganisation;
import com.hy.erp.inventory.pojo.interfaces.IPositionType;
//import com.hy.erp.inventory.vsoft.libra.enterprise.framework.persistence.api.annotation.DaoA;
//import com.hy.erp.inventory.vsoft.libra.enterprise.framework.persistence.entity.AbstractPersistentEntity;
import com.hy.mydesktop.shared.persistence.domain.gxt.MyBaseModel;


/**
 * <ul>
 * <li>开发作者：汤莉</li>
 * <li>设计日期：2010-10-6；时间：下午01:31:32</li>
 * <li>字段类型：long；字段名称：serialVersionUID</li>
 * <li>设计目的：</li>
 * </ul>
 * <ul>
 * <b>修订编号：</b>
 * <li>修订日期：</li>
 * <li>修订作者：</li>
 * <li>修订原因：</li>
 * <li>修订内容：</li>
 * </ul>
 */
@Entity
@Table(name="t_positionType")
//@Name("positonType")
//@Scope(ScopeType.SESSION)
//@Table(name="positonType")
//@DaoA(IPositonTypeDao.class)
//@Component("positonType")
//public class PositonType extends AbstractPersistentEntity implements IPositonType
public class PositionType extends MyBaseModel //implements IPositonType
{

	private static final long	serialVersionUID	=
														1764095733986809726L ;

	
	public PositionType(){}
	
	public PositionType(String name,String description){
		this.setName(name);
		this.setTitle(name);
		this.setDescription(description);
	}

	

	//##############################################################################
	
	
	@Column(name="title",unique=false,nullable=false,insertable=true,updatable=true)
	@Index(name="titleIndex")
	public String getTitle ( )
	{
		return this.get(IPositionType.TITLE) ;
	}

	@Column(name="description",unique=false,nullable=true,insertable=true,updatable=true)
	public String getDescription ( )
	{
		return this.get(IPositionType.DESCRIPTION) ;
	}


	
	public String getName ( )
	{
		return this.get(IPositionType.NAME) ;
	}

	public void setName(String name) {
		super.set(IPositionType.NAME, name);
	}

	//#########################################################################3
	
	

	public void setTitle (
							String title )
	{
		super.set(IPositionType.TITLE,title) ;
	}

	public void setDescription (
									String description )
	{
		super.set(IPositionType.DESCRIPTION,description) ;
	}


	/*public String getNameForShow ( )
	{
		return this.get("NAME"+"ForShow") ;
	}

	public void setNameForShow(String name) {
		super.set("NAME"+"ForShow", name);
	}*/

	
	
	
}
